/*
 * 项   目：spring-boot-demo
 * 作   者：罗毅（ymluo） 
 * 邮   箱：ymluo@iflytek.com
 * 创建时间：2017/11/15 9:38
 */
package com.roin.learn.springboot.demo.api;

import com.roin.learn.springboot.demo.SystemConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SystemInfoController {
    @Autowired
    SystemConfig systemConfig;

    @RequestMapping(value = "/sysinfo",produces = "application/json; charset=utf-8",method = RequestMethod.GET)
    SystemConfig getSysInfo() {
        return systemConfig;
    }
}
